package com.itheima.chongxie2;

public class Demo01 {
    public static void main(String[] args) {
        Zi zi = new Zi();
        Fu.dance();
        Zi.dance();

    }

}

class Fu {
    private void sing() {
    }

    public static void dance() {
        System.out.println("fu...dance");
    }

    protected void rap() {

    }

}

class Zi extends Fu {
    //@Override  私有方法 不能重写
    private void sing() {
    }

    //@Override
    public static void dance() {
        System.out.println("zi...dance");
    }

    @Override
   public void rap() {

    }
}
